package com.dcjt.firehotcarpad.adapter

import android.view.View
import android.view.ViewGroup
import com.github.hymanme.tagflowlayout.TagAdapter
import com.github.hymanme.tagflowlayout.bean.TagBean
import com.github.hymanme.tagflowlayout.tags.DefaultTagView

/**
 * Created by cj on 2021/2/25.
 * Email:codesexy@163.com
 * Function:
 * desc:现场文书的反馈模版
 */
class FeedBackTagAdapter : TagAdapter<TagBean>() {

    override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {
        var tags = DefaultTagView(parent!!.context)
        tags.text = (getItem(position) as TagBean).name
        return tags
    }
}